package com.health.hfm;

import com.alibaba.fastjson.JSON;
import com.health.core.util.GeneralUtil;
import com.health.hfm.pojo.UserDocsTypePO;
import lombok.SneakyThrows;
import org.junit.Test;

import java.util.ArrayList;
import java.util.HashMap;
import java.util.LinkedList;
import java.util.List;

public class Demo<T> {

    @SneakyThrows
    @Test
    public void show(){
        String text = "123";
        String ymz = GeneralUtil.encrypt("ymz", text);
        System.out.println(ymz);
        String ymz1 = GeneralUtil.decrypt("ymz", ymz);
        System.out.println(ymz1);

    }

    @Test
    public void show2(){
        UserDocsTypePO userDocsTypePO = new UserDocsTypePO();
        userDocsTypePO.setCompanyCode("123");
        String string = JSON.toJSONString(userDocsTypePO);
        System.out.println(string);
    }

    @Test
    public void show1(){
        UserDocsTypePO userDocsTypePO = new UserDocsTypePO();
        userDocsTypePO.setCompanyCode("123");
        String string = JSON.toJSONString(userDocsTypePO);
        System.out.println(string);

    }

    @Test
    public void show3(){
        //
        List<String> list = new ArrayList<>();
        Object[] objects = list.toArray();

    }


}
